<?php

//decode by QQ:89197986 https://www.admincn.cc/
defined('IN_IA') or exit('Access Denied');
class dayu_smsModule extends WeModule
{
	public function settingsDisplay($settings)
	{
		global $_GPC, $_W;
		if (checksubmit()) {
			$data = array('sms' => array('mode' => $_GPC['mode'], 'accountsid' => $_GPC['accountsid'], 'tokenid' => $_GPC['tokenid'], 'appkey' => $_GPC['appkey'], 'appsecret' => $_GPC['appsecret'], 'yxuid' => $_GPC['yxuid'], 'yxpwd' => $_GPC['yxpwd']), 'mode' => $_GPC['mode'], 'ucpaas' => array('accountsid' => $_GPC['accountsid'], 'tokenid' => $_GPC['tokenid']), 'dayu' => array('appkey' => $_GPC['dayukey'], 'appsecret' => $_GPC['dayusecret']), 'aliyun' => array('appkey' => $_GPC['aliappkey'], 'appsecret' => $_GPC['alisecret']));
			$data['sendtime'] = $_GPC['sendtime'];
			if ($this->saveSettings($data)) {
				message('保存成功', 'refresh');
			}
		}
		$sendtime = !empty($settings['sendtime']) ? $settings['sendtime'] : '1';
		include $this->template('setting');
	}
}